import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../views/Login.vue'
import home from '../views/home.vue'
import welcom from '../views/welcom.vue'
import community from '../views/community.vue'
import storemanage from '../views/StoreManage.vue'
import stationmanage from '../views/Station_Manage.vue'
import goods from '../views/Goods_Manage.vue'

// import header from '../views/header.vue'


Vue.use(VueRouter)

const routes = [
  {path:'/',redirect:'/login'},
  {path:'/login',component:login},
  {path:'/home',component:home,
    children:[
      {path:'/',redirect:'/welcom'},
      {path:'/welcom',component:welcom},
      {path:'/community',component:community},
      {path:'/storemanage',component:storemanage},
      {path:'/stationmanage',component:stationmanage},
      {path:'/goods',component:goods},

      // {path:'/header',component:header},
      
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router
